package com.example.springbootmybatis.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;

/**
 * @program: springbootmybatis
 * @description:
 * @author: 诸葛龙辰
 * @create: 2022-11-18 22:00
 **/
@Configuration
public class SwaggerConfig {
    @Bean
    public Docket docket(){
        Docket docket = new Docket(DocumentationType.SWAGGER_2);
        //        .groupName("zlw")
//                .apiInfo(getInfo())
//                .select()
////                .paths(Predicates.and(PathSelectors.regex("/api/.*")))
//                .apis(RequestHandlerSelectors.basePackage("com.wys.controller"))
//                .build();
        return docket;
    }
//    private ApiInfo getInfo{
//        Contact DEFAULT_CONTACT = new Contact("赵龙威", "http://www.jd.com","110@qq.com");
//      ApiInfo  info = new ApiInfo("在线预约api", "在线预约api", "2.0", "http://www.baidu.com", DEFAULT_CONTACT, "漫动者", "http://www.aaa.com", new ArrayList());
//      return info;
//    }
}
